<?php

/*
 * This is to update psychologist info.
 */
include '../../include/config.php';
mysql_query("update baby_mother_pyco set `p_name` = '".$_POST['p_doctor']."',`p_address`='".$_POST['p_address']."',`p_city`='".$_POST['p_city']."',`p_country`='".$_POST['p_country']."', `p_tel` = '".$_POST['p_tel']."',`p_mobile` = '".$_POST['p_mobile']."',`p_first_visit` ='".date('Y-m-d', strtotime($_POST['p_first_visit']))."',`p_last_visit`='".date('Y-m-d', strtotime($_POST['p_last_visit']))."',`p_result`='".$_POST['p_result']."' where `mother_id`='".$_POST['mid']."'   ") or die(mysql_error());
header('Location:../view/pre-pregnancy.php?menu=psychologist');
?>
